def numericSum(num):
    total=0
    while num>0:
        n=num%10
        num=num//10
        total=total+n
    return total

x=numericSum(52)
print(x)